package com.aaa.tmr.util;

import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

/**
 * @author Marko
 */
@AllArgsConstructor
@NoArgsConstructor
public enum ReturnStatus {

    /**
     * SUCCESS,获取数据返回成功
     * FAIL,获取数据返回失败
     */
    SUCCESS(0,"操作成功"),
    FAIL(5,"操作失败");

    private int code;
    private String message;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }}
